<?php echo $html->script(array('jquery')); ?>
<div class="content-box">
	<div class="box-body">
		<div class="box-header clear">
				<ul class="tabs clear">
                         <li><a href="#b">Trở lại</a></li>
                 </ul>
			<h2>Thông tin dự bị đoàn viên</h2>
		</div>
		
		<div class="box-wrap clear">
			<?php echo $form->create('UnionMember', array('class'=>'validate-form form bt-space15')) ?>
			<div class="columns clear bt-space15">
				<div class="col2-3">
					<?php 
						echo $form->input('UnionMember.id', array('value'=>$id, 'div'=>'form-field clear', 'type'=>'hidden', 'class'=>'required text fl-space2'));  
						echo $form->input('UnionMember.lastname', array('label'=>array('class'=>'form-label size-120 fl-space2', 'text'=>'Họ: <span class="required">*</span>'), 'div'=>'form-field clear', 'type'=>'text', 'class'=>'required text fl-space2'));
						echo $form->input('UnionMember.firstname', array('label'=>array('class'=>'form-label size-120 fl-space2', 'text'=>'Tên: <span class="required">*</span>'), 'div'=>'form-field clear', 'type'=>'text', 'class'=>'required text fl-space2'));
						echo $form->input('UnionMember.current_union_id', array('value'=>$union_id, 'div'=>'form-field clear', 'type'=>'hidden', 'class'=>'required text fl-space2'));
						
						echo $form->input('UnionMemberDetail.id_card_number', array('label'=>array('class'=>'form-label size-120 fl-space2', 'text'=>'CMND: <span class="required">*</span>'), 'div'=>'form-field clear', 'type'=>'text', 'class'=>'required text fl-space2'));  
						echo $form->input('UnionMemberDetail.birthday', array('label'=>array('class'=>'form-label size-120 fl-space2', 'text'=>'Ngày sinh: <span class="required">*</span>'), 'div'=>'form-field clear', 'type'=>'date', 'class'=>'required text fl-space2'));
						echo $form->input('UnionMemberDetail.sex', array('div'=>'clear', 'class'=>'radio fl-space required', 'type'=>'radio', 'options'=>array('1'=>'Nam','0'=>'Nữ'), 'value'=>'1', 'legend'=>false,
							 'before'=>'<div class="clear"><label class="form-label fl-space2 size-120">Giới tính: <span class="required">*</span></label><div class="form-radio-item clear fl-space2">', 'separator'=>'</div><div class="form-radio-item clear fl-space2">', 'after'=>'</div></div>'));
						echo $form->input('UnionMemberDetail.ethnic_id', array('label'=>array('class'=>'form-label size-120 fl-space2', 'text'=>'Dân tộc: <span class="required">*</span>'), 'div'=>'form-field clear', 'options'=>$list_ethnic, 'empty'=>'--Lựa chọn--', 'class'=>'required text fl-space2'));
						echo $form->input('UnionMemberDetail.religion_id', array('label'=>array('class'=>'form-label size-120 fl-space2', 'text'=>'Tôn giáo: <span class="required">*</span>'), 'div'=>'form-field clear', 'options'=>$list_religion, 'empty'=>'--Lựa chọn--', 'class'=>'required text fl-space2'));
						echo $form->input('UnionMemberDetail.hometown_id', array('label'=>array('class'=>'form-label size-120 fl-space2', 'text'=>'Quê quán: <span class="required">*</span>'), 'div'=>'form-field clear', 'options'=>$list_hometown, 'empty'=>'--Lựa chọn--', 'class'=>'required text fl-space2'));
						echo $form->input('UnionMemberDetail.registered_address', array('label'=>array('class'=>'form-label size-120 fl-space2', 'text'=>'Địa chỉ thường trú: <span class="required">*</span>'), 'div'=>'form-field clear', 'type'=>'text', 'class'=>'required text fl-space2'));
						echo $form->input('UnionMemberDetail.current_address', array('label'=>array('class'=>'form-label size-120 fl-space2', 'text'=>'Địa chỉ tạm trú: <span class="required">*</span>'), 'div'=>'form-field clear', 'type'=>'text', 'class'=>'required text fl-space2'));
						echo $form->input('UnionMemberDetail.phone', array('label'=>array('class'=>'form-label size-120 fl-space2', 'text'=>'Điện thoại: <span class="required">*</span>'), 'div'=>'form-field clear', 'type'=>'text', 'class'=>'required text fl-space2'));
						echo $form->input('UnionMemberDetail.email', array('label'=>array('class'=>'form-label size-120 fl-space2', 'text'=>'Email: <span class="required">*</span>'), 'div'=>'form-field clear', 'type'=>'text', 'class'=>'required text fl-space2'));
						echo $form->input('UnionMemberDetail.admission_place', array('label'=>array('class'=>'form-label size-120 fl-space2', 'text'=>'Nơi kết nạp: <span class="required">*</span>'), 'div'=>'form-field clear', 'type'=>'text', 'class'=>'required text fl-space2'));
						echo $form->input('UnionMemberDetail.admission_date', array('label'=>array('class'=>'form-label size-120 fl-space2', 'text'=>'Ngày kết nạp:  <span class="required">*</span>'), 'div'=>'form-field clear', 'type'=>'date', 'class'=>'required text fl-space2'));
						
					?>				
				</div>
			</div>	
			
			<div class="rule2"></div>	
					
			<div class="form-field clear">
				<input type="submit" class="button red" value="Hoàn tất" />
			</div><!-- /.form-field -->																								
			
			<?php echo $form->end(); ?>
			
			</div><!-- end of box-wrap -->
	</div> <!-- end of box-body -->
	</div> <!-- end of content-box -->